<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="/sinopac-fn" prefix="fn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<title>分行平台登入</title>
		<link rel="stylesheet" href="${fn:url('/form/CSS/tabs.css')}">
		<script type="text/javascript" src="${fn:url('/js/jQuery/jquery-1.8.2.min.js')}"></script>  
		<script>
			$(document).ready(function(){
				$('#mainLoginForm input[name=buttonOK]').click(function(){
					if($('#userName_a').val()==""){
						//alert("帳號請勿空白");
						var f = $('#mainLoginForm');						
						f.prop('action','${fn:url('/Index/index.action')}');
						f.submit();
					}else{
						var f = $('#mainLoginForm');						
						f.prop('action','${fn:url('/Index/index.action')}');
						f.submit();
					}
				});
				
				$('#mainLoginForm input[name=clean]').click(function() {
					$('#userName_a').val("");
					$('#passWord_a').val("");
				});
			});

			
			function request()
			{ 
				var queryString=window.location.search.replace("?","")
				var a=queryString.indexOf("userName=");	//找參數開頭
				var b=queryString.indexOf("&",a);	//找參數結尾
				if (b==-1) return queryString.substring(a).replace("userName=","");  //表示是最後的參數
				alert(queryString.substring(a,b));
			}
		</script> 
		
	</head>
	<body>
		<div align="center">
			<table width="768">
				<tr align="left">
					<td><img src="${fn:url('/form/images/BankSinoPacLogo.png')}"/></td>
					<td align="left">分行管理平台</td>
				</tr>
			</table>
		</div>
		<div align="center">
			<fieldset style="border-color: #8B7B8B;width: 300px">
			<!-- 	<s:form id="mainLoginForm">	
					<table>
						<tr>
							<td><s:textfield name="userName" label="請輸入帳號" id="userName_a"/></td>
						</tr>
						<tr>
							<td><s:password name="passWord" label="請輸入密碼" id="passWord_a"/></td>
						</tr>
						<tr>
							<td align="center"><input name="buttonOK" type="button" value="確定" /></td>
							<td align="center"><input name="clean" type="button" value="取消" /></td>
						</tr>
					</table>
				</s:form>	 -->
				<Form id='SSORedir' name='SSORedir' action='http://localhost:8080/sinopac/Index/index.action' method='Post'>
					<Input type='hidden' name='UserID'  value='a' >
					<Input type='hidden' name='MD5' value='d9d1e60e50119d9752001d4196ee6b3c' >
					<input type="submit" value="Submit" />
				</Form>
			</fieldset>
		</div>
	</body>
</html>